<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
   <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
</head>
<body>
    <p class="moive">
        
            导演: 陈凯歌 Kaige Chen&nbsp;&nbsp;&nbsp;主演: 张国荣 Leslie Cheung / 张丰毅 Fengyi Zha...<br>
            1993&nbsp;/&nbsp;中国大陆 中国香港&nbsp;/&nbsp;剧情 爱情 同性
        
    </p>
    <script>
        var str = $("p").html().trim().split("<br>")[1].trim();
        var reg = /&nbsp;/g
        var res = str.replace(reg,"");
        var arr = res.split("/");
        var last = arr[arr.length-1].split(" ");
        var sum=[]
        for(var i = 0;i<arr.length-1;i++){
            
            sum.push[arr[i]]
        }
        sum.push(...last);
        console.log(sum)
    </script>
</body>
</html>